package org.tang.springcloudvv.cxf.utils;

import org.tang.springcloudvv.cxf.service.impl.UserInfoWSServiceImpl;
import org.tang.springcloudvv.cxf.vo.User;
import org.tang.springcloudvv.util.SpringUtils;

import java.util.List;

/**
 * <p><em>Created on 2022/4/8 9:24 上午</em></p>
 *
 * @author fuzhongtang
 * @since 1.0.1
 */
public class WebserviceUtils {
    public static Object getResult(Object param)
    {
        UserInfoWSServiceImpl userInfoWSService = SpringUtils.getBean(UserInfoWSServiceImpl.class);
        if (userInfoWSService != null)
        {
            User user = (User)((List)param).get(0);
            return userInfoWSService.addUser(user);
        }
        return null;
    }
}
